<?php

namespace Model;

use \Gas\Core;
use \Gas\ORM;

class User_Shop_Favorite extends ORM {
	
	public $table = 'user_shop_favorites';

	public $primary_key = 'id';

	function _init()
	{

		self::$relationships = array (
			'user' =>ORM::belongs_to('\\Model\\User')
		);

		self::$fields = array(
			'id' => ORM::field('auto[11]'),
			'user_id' => ORM::field('int[11]'),
			'shop_id' => ORM::field('int[11]')
		);
	}
}